package com.ly.mpayment.persist.service.slow;


import com.ly.mpayment.persist.entity.slow.SlowOrder;
import com.ly.mpayment.persist.hibernate.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface SlowOrderService {
	public Page<SlowOrder> findPageSlowOrder(Map<String, Object> parameters, int start, int pageSize);
	
	public boolean saveSlowOrder(SlowOrder order);
	
	public boolean updateSlowOrder(SlowOrder order);
	
	public SlowOrder findById(String id);
	
	public SlowOrder findByOutTradeNo(String outTradeNo);

	public boolean deleteSlowOrder(String string);

	public void updateLockOrder(String orderuuid);
	
	public boolean updateSlowOrders(List<SlowOrder> orders);

	SlowOrder findSlowOrder(String phoneNum, BigDecimal price);

	/**
	 * 骑士下单
	 * @param data
	 * @return
	 */
	SlowOrder commitSlowOrder(String data);

    SlowOrder queryOrder(String data);

}
